//
// Created by 刘洋 on 2024/2/13.
//

#ifndef LOWPASS_FILTER_H
#define LOWPASS_FILTER_H
#include "time_utils.h"
#include "foc_utils.h"
typedef struct
{
    float Tf;
    unsigned long timestamp_prev;
    float y_prev;
}LowPassFilter;
float LowPassFilterInit(LowPassFilter *lpf, float time_constant);
float LowPassFilterRun(LowPassFilter *lpf, float x);

#endif //LOWPASS_FILTER_H
